package com.bupt.server.serviceImpl;

import com.bupt.server.mapper.ServiceRecordMapper;
import com.bupt.server.ret.Data;
import com.bupt.server.service.ServiceRecordService;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ServiceRecordServiceImpl implements ServiceRecordService {
    @Autowired
    ServiceRecordMapper serviceRecordMapper;

    @Override
    public int checkInRecord(Data data,int room_id) {
        String check_in_date = data.getCheck_in_date();
        String check_out_date = data.getCheck_out_date();
        return serviceRecordMapper.checkInInsertRecord(room_id,check_in_date,check_out_date);
    }
}
